package org.zqh.ncc.config;

import nccloud.open.api.auto.token.cur.utils.APICurUtils;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.zqh.ncc.thread.JlymToErpThread;

import java.util.concurrent.PriorityBlockingQueue;

@Configuration
public class BeanConfig {
    @Bean
    public PriorityBlockingQueue<YmToErp> yfymToErpQueue() {
        return new PriorityBlockingQueue<>();
    }

    @Bean
    public PriorityBlockingQueue<YmToErp> jlymToErpQueue() {
        return new PriorityBlockingQueue<>();
    }

    @Bean
    public PriorityBlockingQueue<CgToErp> cgToErpQueue() {
        return new PriorityBlockingQueue<>();
    }

    @Bean
    public PriorityBlockingQueue<XsToErp> xsToErpQueue() {
        return new PriorityBlockingQueue<>();
    }

    @Bean
    public APICurUtils yfymApiCurUtils() {
        return new APICurUtils();
    }

    @Bean
    public APICurUtils jlymApiCurUtils() {
        return new APICurUtils();
    }

    @Bean
    public APICurUtils cgApiCurUtils() {
        return new APICurUtils();
    }

    @Bean
    public APICurUtils xsApiCurUtils() {
        return new APICurUtils();
    }

}
